package viz.model.flare.encoders
{
	import com.adobe.serialization.json.JSON;
	
	import viz.model.IDecodeable;
	import viz.model.flare.data.StateMap;


	public class StateMap2JSON implements IDecodeable
	{
		
		private var stateMap:StateMap;
		
		public function StateMap2JSON( o:Object ):void{
			stateMap = StateMap( o );
		}
		
		public function decode(  ):Object{
			return JSON.encode( stateMap.decode() )
		}
	}
	
}